package zuoye2;

public class FruitTest {
    public static void main(String[] args) {
        Fruit apple = new Apple();
        apple.setName("苹果");
        apple.setArea("陕西");
        apple.setPrice(10);
        apple.show();

        Fruit pear = new Fruit();
        pear.setName("梨");
        pear.setArea("中国");
        pear.setPrice(15);
        pear.show();

        Fruit strawberry = new strawberry();
        strawberry.setName("草莓");
        strawberry.setArea("广东");
        strawberry.setPrice(20);
        strawberry.show();
    }
}
